//
//  NSMutableData+MD5.m
//  DTSTON
//
//  Created by 喻贵华 on 16/5/14.
//  Copyright © 2016年 Demo. All rights reserved.
//

#import "NSMutableData+MD5.h"
#import "NSString+Helper.h"
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonCryptor.h>
#import "gtmbase64/GTMBase64.h"
@implementation NSMutableData (MD5)
-(NSData*)MD5
{
    unsigned char md5Buffer[CC_MD5_DIGEST_LENGTH];
    CC_MD5((__bridge const void*)(self), (CC_LONG)self.length, md5Buffer);

  
    return  [ NSData dataWithBytes:md5Buffer length:CC_MD5_DIGEST_LENGTH];;
    
   
}

@end
